import 'package:love_newf/app/com/http/http_request.dart';
import 'package:love_newf/app/com/base/key_mix.dart';
import 'package:love_newf/generated/l10n.dart';

class AddressService {
  static List<dynamic>? addressData;

  ///获取地址信息
  Future<List<dynamic>> getAddressData() async {
    if (addressData != null) return addressData??[];
    dynamic data = await HttpRequest()
        .get('/v3/certify/city-init'.hx, null, loadingText: S.current.loading);
       addressData = data ;
    return addressData??[];
  }
}
